<?php
namespace App\Module\Teacher\Controller;

use App\Common\Controller\AbstractController;
use App\Module\Teacher\Service\HomeService;
use Hyperf\Di\Annotation\Inject;

class HomeController extends AbstractController{

    /**
     * @Inject()
     * @var HomeService $homeService
     */
    private $homeService;

    public function info(){
        return $this->response->json($this->homeService->info());
    }

    public function password(){
        return $this->response->json($this->homeService->password($this->request));
    }
}